From: jeanlf Date: Mon, 4 Jan 2021 10:18:27 +0000 (+0100) Subject: [PATCH] fixed #1661 X-Git-Tag: archive/raspbian/1.0.1+dfsg1-4+rpi1+deb11u2^2~110 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d8f6f35b8efed5ebbb32026040e73648df9c3676;p=gpac.git [PATCH] fixed #1661 Gbp-Pq: Name CVE-2020-35980.patch --- diff --git a/src/isomedia/isom_store.c b/src/isomedia/isom_store.c index 80a6b5c..7c4ce05 100644 --- a/src/isomedia/isom_store.c +++ b/src/isomedia/isom_store.c @@ -102,6 +102,9 @@ void CleanWriters(GF_List *writers) { while (gf_list_count(writers)) { TrackWriter *writer = (TrackWriter*)gf_list_get(writers, 0); + //in case we have an error in the middle of file write, remove our created stco and stsc from sample table + gf_list_del_item(writer->stbl->child_boxes, writer->stco); + gf_list_del_item(writer->stbl->child_boxes, writer->stsc); gf_isom_box_del(writer->stco); gf_isom_box_del((GF_Box *)writer->stsc); gf_free(writer);